<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>AIESEC</title>

 	<%= stylesheet_link_tag 'style' %>
 	<%= stylesheet_link_tag 'scaffold' %>
	<%= stylesheet_link_tag 'main' %>
	<%= stylesheet_link_tag 'niceforms-default' %>
	<%= javascript_include_tag :defaults %>
	<%= stylesheet_link_tag 'datepicker' %>
  <%= javascript_include_tag 'datepicker' %>
  <%= javascript_include_tag 'paginator' %>  
 
</head>

<body>
<div id="wrap">
<div id="topbar">
  
  <h1 id="sitename">
<% if logged_in? %>
  <h4><%= link_to 'HOME', welcome_user_path(:user_id => current_user.id) %> | <%=h current_user.login %> |
     <%= link_to 'Logout', logout_path, {:style=>'color:#FFFFFF;', :class => "css_class"} %></h4>
<% else %>
  <h4>No esta logueado |
    <%= link_to 'Login', login_path, {:style=>'color:#FFFFFF;', :class => "css_class"}  %>  
   </h4>
<% end %>
	</h1>

</div>
<div id="header">
<ul id="topmenu">
<li><%= link_to 'Cuentas', cuentas_path, {:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:17;', :class => "style"}  %>
</li>
<li><%= link_to 'Incoming Exchange', inexchanges_path, {:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:17;', :class => "style"}  %>
</li>
<li><%= link_to 'Outgoing Exchange', ogxtrainees_path, {:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:17;', :class => "style"}  %>
</li>
<li><%= link_to 'Marketing', marketingtasks_path, {:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:17;', :class => "style"}  %>
</li>
<li><%= link_to 'Finanzas', finanzas_path, {:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:17;', :class => "style"}  %>
</li>
<li><%= link_to 'Contactos', contactos_path, {:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:17;', :class => "style"}  %>
</li>
<li><%= link_to 'Performance', reportes_path, {:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:17;', :class => "style"}  %>
</li>
<li><%= link_to 'Trainees', trainees_path, {:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:17;', :class => "style"}  %>
</li>

</ul>
</div>


<div id="content">
<div id="mainpage">
	<%= yield %>
</div>
<div id="sidebar">
<div id="sidebarcontents"> 
<ul id="menu">
	<%= yield(:side) || render(:partial => '/layouts/default_side_menu') %>
</div>
  <div id="sidebarbottom"></div>
</div>
<div class="clear"></div>
</div>
<div id="footer">
<% is_adm do %>

<h3>Administracion - 
		<%= link_to 'Usuarios', users_path,{:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:12;', :class => "style"} %>
		|
		<%= link_to 'Equipos', equipos_path,{:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:12;', :class => "style"} %>
		|
<%= link_to 'Roles de Usuario', role_users_path,{:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:12;', :class => "style"} %>
		|
<%= link_to 'Estados Trainee', estados_trainee_path,{:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:12;', :class => "style"} %>
		|
		<%= link_to 'Asignaciones Usuario/Cuenta', usuario_cuentas_path,{:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:12;', :class => "style"} %>
	  |			 
<%= link_to 'Estados de Cuenta', estados_cuenta_path,{:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:12;', :class => "style"} %>
	  |
<%= link_to 'Metricas', metricas_path,{:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:12;', :class => "style"} %>
		|
<%= link_to 'Tarifas', precios_path,{:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:12;', :class => "style"} %>
		|
<%= link_to 'Novedades', noticias_path,{:style=>'font-family: Arial, Helvetica, sans-serif;color:#fff;font-size:12;', :class => "style"} %> | </h3>	
<% end %>		
</div>
</body>
</html>

